/**********************************************************************
* File: character.h
* ID  : 
* Purpose: Delcare the prototype for class Character
* Date   : 2004/04/20
* Author : T.S.Yo
* Description:
**********************************************************************/

#ifndef CHARACTER_H
#define CHARACTER_H

#include <string>
#include "item.cpp"
#include "listlnk2.cpp"
using namespace std;

class Character
{
    public:
    // Constructor
        Character();

    // Destructor 
        ~Character(); 

    // Get Data Member
       int  getScore();
       int  getCurLocation();
       int  getCurWeight();
       int  getWeightLimit();
       void showItems();

    // Set Data Member
       void setScore(const int &newScore);
       void setCurLocation(const int &newLocation);
       void addItem(const Item &newItem);
       void dropItem(const string &itemName);
       bool searchItem(const string &itemName, Item &searchItem);
    
    private:
        List<Item,string> inventory;  // List of items in player's inventory
        int  score;            // Character's score
        int  weightLimit;      // Character's limit of carrying weight
        int curLocation;       // Character's current location
};

#endif    //#ifndef CHARACTER_H

